package cn.coufran.springboot.starter.log.logger;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志记录相关配置
 * @author Coufran
 * @version 1.0.0
 * @since 1.0.0
 */
@Configuration
public class LoggerConfig {
    /**
     * 日志记录器
     * @return 日志记录器
     */
    @Bean
    @ConditionalOnMissingBean(Logger.class)
    public Logger slfLogger() {
        return new SlfLogger();
    }
}
